class car:
    def __init__(self,modle,number):
        self.modle = modle
        self.number = number
        
    def car_start(self):
        print(f"汽车{self.modle}，车牌号{self.number}启动")
        
    def car_stop(self):
        print(f"汽车{self.modle}，车牌号{self.number}熄火")
        
class taxi(car):
    def __init__(self, modle, number,company):
        super().__init__(modle, number)
        self.company = company
                
    def car_start(self):
        print(f"出租车{self.modle}，车牌号{self.number}启动,所属公司{self.company}")
        
    def car_stop(self):
        print(f"出租车{self.modle}，车牌号{self.number}熄火,所属公司{self.company}")
        
class family_car(car):
    def __init__(self, modle, number,owner):
        super().__init__(modle, number)
        self.owner = owner
                
    def car_start(self):
        print(f"家用车{self.modle}，车牌号{self.number}启动,车主{self.owner}")
        
    def car_stop(self):
        print(f"家用车{self.modle}，车牌号{self.number}熄火,车主{self.owner}")
        
taxi = taxi("大众","粤B12345","滴滴")
taxi.car_start()
taxi.car_stop()

print('-'*30)
family_car = family_car("本田","粤A54321","张三")
family_car.car_start()
family_car.car_stop()

